package com.iflytek.erp.base.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 仓库表(BaseDataStoreCenter)实体类
 *
 * @author makejava
 * @since 2024-11-13 11:30:00
 */
public class BaseDataStoreCenter implements Serializable {

    private static final long serialVersionUID = 889980058912717038L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 仓库名称
     */
    private String name;
    /**
     * 联系人
     */
    private String contact;
    /**
     * 联系人手机号
     */
    private String phone;
    /**
     * 仓库地址
     */
    private String address;
    /**
     * 仓库人数
     */
    private Integer num;
    /**
     * 备注
     */
    private String remark;
    /**
     * 状态。1-启用，0-停用
     */
    private Integer status;
    /**
     * 创建者ID
     */
    private Integer createUser;
    /**
     * 创建时间
     */
    /*
     * @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")  格式化时间戳后传给前端
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新者ID
     */
    private Integer updateUser;
    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建者名称
     */
    private String createUserName;




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }



    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    @Override
    public String toString() {
        return "BaseDataStoreCenter{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", contact='" + contact + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", num=" + num +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", updateUser=" + updateUser +
                ", updateTime=" + updateTime +
                ", createUserName=" + createUserName +
                '}';
    }
}

